package com.xinnet.mms.customercare.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinnet.mms.customercare.dao.CustomerCareDao;
import com.xinnet.mms.customercare.service.CustomerCareService;
import com.xinnet.mms.entity.CustomerCare;

@Service("customerCareService")
public class CustomerCareServiceImpl implements CustomerCareService{
	
	@Autowired
	private CustomerCareDao customerCareDao;
	
	
	public CustomerCare getCustomerServiceByCustomIdAndProductId(String customId ,String productId){
		CustomerCare customerCare = customerCareDao.getCustomerCareByCustomIdAndProductId(customId,productId);
		return customerCare;
	}
	
	public boolean getIsUseOtherProduct(String customId ,String productId){
		boolean isUseOtherProduct = customerCareDao.isUseOtherProduct(customId,productId);
		return isUseOtherProduct;
	}
	
	public List<String> getCustomerCareCustomerIdList(){
		List<String> customerIdList = customerCareDao.getCustomerCareCustomerIdList();
		return customerIdList;
	}
	
	public void addCustomerCare(CustomerCare customerCare){
		customerCareDao.addCustomerCare(customerCare);
	}

	/**添加订单*/
	@Override
	public void addOrders(CustomerCare customerCare) {
		customerCareDao.addOrders(customerCare);
	}

}
